package org.judo.generate.mvc;

import java.util.ArrayList;

public class Context extends ActionCodeContainer
{
	public ArrayList<String> contextVars = new ArrayList<String>();
	
	public void addContextVars(ArrayList<String> vars)
	{
		for (String var:vars)
		{
			var = var.replace("|" +
					"",",");
			
			if (!contextVars.contains(var) &&
				!contextVars.contains("int,"+var) &&
				!contextVars.contains("float,"+var) &&
				!contextVars.contains("string,"+var) &&
				!contextVars.contains("date,"+var)
					)
			{
				contextVars.add(var);
			}
		}
	}
}
